import 'reflect-metadata';
import { ContainerConfig } from '../src/di/container';
import { container } from '../src/di/container';

ContainerConfig.configure();

(async () => {
  const userService = container.resolve('IUserService');
  const user = await userService.createUser({ username: 'alice', password: 'pass123' });
  console.log('created', user);
  const auth = await userService.authenticate('alice', 'pass123');
  console.log('auth', auth);
})();
